﻿//===============================================================================
// Microsoft patterns & practices
// Unity Application Block
//===============================================================================
// Copyright © Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CalculatorEngines
{
  public class SimpleEngine : ICalculationEngine
  {
    public double Add(double n1, double n2)
    {
      return n1 + n2;
    }

    public double Subtract(double n1, double n2)
    {
      return n1 - n2;
    }

    public double Multiply(double n1, double n2)
    {
      return n1 * n2;
    }

    public double Divide(double n1, double n2)
    {
      return n1 / n2;
    }
  }
}
